import { PLATFORM_Map } from "@/constant/index";
import Inspectionplan from "@/assets/images/leftminsvg/Inspectionplan.svg?component";
export default {
	path: '/daily-inspection',
	redirect: '/daily-inspection/Inspection-plan',
	meta: {
		title: '日常巡检',
		showLink: true,
		rank: 5,
		icon: Inspectionplan,
		platform: [PLATFORM_Map.operate],
		roles: ['business.inspect']
	},
	children: [
		{
			name: 'Inspection-plan',
			path: '/daily-inspection/Inspection-plan',
			component: () => import('@/views/operate/daily-inspection/Inspection-plan/index.vue'),
			meta: {
				title: '巡检计划',
				showParent: true,
				roles: ['business.inspect.plan.detail']
			}
		},
		{
			name: 'Inspection-tasks',
			path: '/Inspection-tasks/Inspection-tasks',
			component: () => import('@/views/operate/daily-inspection/Inspection-tasks/index.vue'),
			meta: {
				title: '巡检任务',
				showParent: true,
				roles: ['business.inspect.insp.list']
			}
		},
		{
			name: 'inspection-statistics',
			path: '/daily-inspection/inspection-statistics',
			component: () => import('@/views/operate/daily-inspection/Inspection-statistics/index.vue'),
			meta: {
				title: '巡检统计',
				showParent: true,
				roles:['business.inspect.statistic']
			}
		}
	]
} satisfies RouteConfigsTable;
